package com.ftg.learn.sys.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ftg.learn.comm.entity.sys.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 员工表 Mapper 接口
 * </p>
 *
 * @author kangjx
 * @since 2022-10-30
 */
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

    @Update("update sys_employee set clazz_id = null where clazz_id = #{id}")
    int setClazzIdWithNull(@Param("id") Integer id);
}
